package com.example.neusoftfood_828lhl.service;

import com.example.neusoftfood_828lhl.bean.LoginBean;
import com.example.neusoftfood_828lhl.bean.Result;

import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Query;

public interface UserService {
    @GET("userLogin.do")
    Call<LoginBean> login(@Query("username")String username,
                          @Query("userpass")String password);
    @GET("userRegister.do")
    Call<Result> register(
            @Query("username")String username,
            @Query("userpass")String userpass,
            @Query("mobilenum")String mobilenum,
            @Query("address")String address,
            @Query("comment")String comment
    );
}
